#ifndef __KEY_RECOMMANDER_H__
#define __KEY_RECOMMANDER_H__

#include "../Key_Word_Search/singleKeyCom.h"
#include "../Key_Word_Search/singleLRU.h"
#include <string>
#include <vector>
using std::string;
using std::vector;

class KeyRecommander{
public:
    KeyRecommander(){};
    ~KeyRecommander(){};

    void doQuery(string msg){
        keyWordCommander* kw = singleKeyCom::getInstance();
        queryKey = kw->getKeyWord(msg);
        //插入主LRU
        LRUcache* lc=singleLRU::getInstance();
        lc->LRUpush(msg,queryKey);
    }

    vector<string>* getQueryKeyPtr(){
        return &queryKey; 
    }

private:
        vector<string> queryKey;
};

#endif // !__KEY_RECOMMANDER_H__
